package com.qys.livesMall.anchor.model.vo.lives.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yxh
 */
@Data
@Schema(name = "SettlementDataVO", description = "直播结算数据")
public class SettlementDataVO {

    @Schema(description = "主播名")
    private String anchorName;

    @Schema(description = "主播名")
    private String anchorAvatar;

    @Schema(description = "任务名称")
    private String livesSessionName;

    @Schema(description = "任务介绍")
    private String taskIntroduction;

    @Schema(description = "本场直播时长（分钟）")
    private Integer livesDuration = 0;

    @Schema(description = "观看人数")
    private Integer viewsNumber = 0;

    @Schema(description = "销售额")
    private BigDecimal salesAmount = BigDecimal.ZERO;

    @Schema(description = "销量")
    private Integer salesVolume = 0;

    @Schema(description = "订单数量")
    private Integer orderQuantity = 0;

    @Schema(description = "点赞量")
    private Long likesNum = 0L;

    @Schema(description = "礼物价值")
    private BigDecimal goldNum = BigDecimal.ZERO;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    /**
     * 收益字段 ================== start
     */

    @Schema(description = "订单提成收益")
    private BigDecimal orderIncome = BigDecimal.ZERO;

    @Schema(description = "底薪收益")
    private BigDecimal basicSalary = BigDecimal.ZERO;

    @Schema(description = "礼物提成收益")
    private BigDecimal giftCommission = BigDecimal.ZERO;

    /**
     * 收益字段 ================== end
     */
}
